<%-- 
    Document   : SetExtension
    Created on : 14/05/2008, 12:52:37
    Author     : Coquinone
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="pageTitle" value="Extented Assignment" scope="page"/>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>${pageTitle}</title>
    </head>
    <body>
        <h1>${pageTitle}</h1>
        <f:view>
            <!-- Show error messages -->
            <h:messages showSummary="true" showDetail="false"
                        style="color: red;
                        font-family: 'New Century Schoolbook', serif;
                        font-style: oblique"
                        id="errors"/>
            <h:form id="selectSubjectCodeForm">
                <table>
                    <tr>
                        <td colspan="3">
                            <b>Step 3. Set Extension Date:</b>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td colspan="2">
                            <c:set var="assObj" value="#{ExtensionManagedBean.assignmentObj}" />
                            <b>Assignment to be Exteneded:  </b><h:outputText id="assignmentText" value="#{assObj.assignment_no} - #{assObj.assignment_name}" /><br />
                            <b>Current Due date:   </b><h:outputText id="assDeadlineText" value="#{ExtensionManagedBean.deadLineToString}" /><br />
                            <b>Set Extension date (dd/mm/yy):    </b><h:inputText id="extensionText" value="#{ExtensionManagedBean.extension}" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <h:commandButton id="goBack" value="< Back" action="back"/>
                        </td>
                        <td>
                            <h:commandButton id="goSubmit" value="Submit >" action="#{ExtensionManagedBean.updateExtension}"/>
                        </td>
                        <td>
                            <h:commandButton id="cancel" value="cancel" action="cancel"/>
                        </td>
                    </tr>
                </table>
                
                
            </h:form>
        </f:view>
    </body>
</html>
